package net.sxnic.workflow.pi.action;

import net.sxinfo.core.dao.Page;
import net.sxinfo.core.util.WebUtils;

@SuppressWarnings("serial")
public class Browse extends PiAction {

	private Page datas;

	public String execute() throws Exception {

		int pageNumber = WebUtils.getPageNumber(request);
		int pageSize = WebUtils.getPageSize(request);

		datas = beanManager
				.getPage(pageNumber, pageSize, "creationDate", false);

		return SUCCESS;
	}

	public Page getDatas() {
		return datas;
	}

	public void setDatas(Page datas) {
		this.datas = datas;
	}
}
